package com.gitee.wsl.platform.concurrent.locks

actual open class Lock : ConditionLock() {

    actual inline fun <T> synchronized(block: () -> T): T {
        lock()
        try {
            return block()
        } finally {
            unlock()
        }
    }
}